package com.lagou.web.servlet;

import com.lagou.base.BaseServlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Method;

/**
 * 当前的Servlet 对应的是课程管理的模块
 */
@WebServlet("/test")//指定访问路径为test
public class TestServlet extends BaseServlet {

    //添加课程的功能
    public void addCourse(HttpServletRequest req, HttpServletResponse resp){

        System.out.println("新建课程");
    }
    //根据课程名查询课程
    public void findByName(HttpServletRequest req, HttpServletResponse resp){

        System.out.println("根据课程名查询课程");
    }
    //根据课程状态查询课程
    public void findByStatus(HttpServletRequest req, HttpServletResponse resp){

        System.out.println("根据课程状态查询课程");
    }
}
